import {form} from 'nuijs';
import './style/index.less';
module.exports = function(e,elem,data){
    data = elem.closest('tr').data();
    form({
        width:700,
        height:336,
        template:`
        <form class="checkform">
        <div class="ui-item e-mt10">
            <span>
                <i class="fff">*</i>
                <label class="ui-label">公司名称</label>
                <span class="company f-dib">nohao</span>
            </span>
        </div>
        <div class="ui-item e-mt15">
            <span>
                <i>*</i>
                <label class="ui-label">审核结果</label>
                <div class="f-pr Tag ui-input ui-input-170 f-dib">
                    <div class="con"><div class="Wrap"></div></div>
                    <input type="text" unselectable="on" class="noinput" readonly  data-fieldid="result" data-select2-options="${require('../../public/logic/selectMode',true).name}" data-multiple="N" data-source="check"  data-defaultvalue='{"name":"通过","id":"0"}'>
                    <b class="iconfont dir"></b>
                </div>
            </span>
        </div>
        <div class="ui-item e-mt15">
            <span>
                <i>*</i>
                <label class="ui-label">审核意见</label>
                <textarea name="advice" ></textarea>
                <em class="s-msg"></em>
            </span>
        </div>
        </form>
        `,
        button:[{
            id:'confirm',
            callback(self){
                self.main.find('form').submit();
                return false;
            }
        }]
    })

}